package com.xian.im.common.enums;

import lombok.Getter;
import org.springframework.amqp.core.ExchangeTypes;

/**
 * @program: xian-im-server
 * @description:  factory  peerToPeer
 * @author: liru.xian
 * @create: 2021-02-01 15:23
 **/
@Getter
public enum ConsumerQueueEnum {

    /**
     *
     */
    CONSUMER_GROUP("consumer:group","consumer:group:ex", ExchangeTypes.FANOUT,false),
    CONSUMER_HEARTBEAT("consumer:heartbeat","consumer:heartbeat:ex",ExchangeTypes.FANOUT,false),
    CONSUMER_CUSTOMIZE("consumer:customize","consumer:customize:ex",ExchangeTypes.FANOUT,true),
    CONSUMER_USER("consumer:user","consumer:user:ex",ExchangeTypes.FANOUT,true),
    CONSUMER_SYSTEM("consumer:system","consumer:system:ex",ExchangeTypes.FANOUT,true),
    GROUP_EVENT("group:event","group:event:ex",ExchangeTypes.FANOUT,true),
    USER_EVENT("user:event","user:event:ex",ExchangeTypes.FANOUT,true),
    GROUP_MSG_SEND("group:msg:send","group:msg:send:ex",ExchangeTypes.FANOUT,true);
    private String factoryName;
    private String exchange;
    private String exchangeTypes;
    private Boolean effect;
    ConsumerQueueEnum(String factoryName, String exchange, String exchangeTypes,Boolean effect){
        this.factoryName =factoryName;
        this.exchange = exchange;
        this.exchangeTypes = exchangeTypes;
        this.effect = effect;
    }
}
